package com.dys.designpattern.simplefactory.distributeprizestosimplefactories.service.impl;

import com.dys.designpattern.simplefactory.distributeprizestosimplefactories.entity.AwardInfo;
import com.dys.designpattern.simplefactory.distributeprizestosimplefactories.service.IFreeGoods;
import com.dys.designpattern.simplefactory.distributeprizestosimplefactories.vo.ResponseResult;

/**
 * @Author: 疾风
 * @ClassName: YouKuMemberFreeGoods
 * @Description: 发放优酷会员服务
 * @CreateDate: 2024/05/13
 * @Version: v1.0.0
 */
public class YouKuMemberFreeGoods implements IFreeGoods {
    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        String phone = awardInfo.getExtMap().get("phone");
        System.out.println("发放优酷会员成功,绑定手机号: " + phone);
        return new ResponseResult("200", "优酷会员发放成功!");
    }
}
